;(function () {
  //将更少参数的函数赋值给具有更多参数的函数类型
  const arr: number[] = []
  const list: number[] = [1, 2, 3]

  list.forEach((item) => arr.push(item))

  function handler(arg: string) {
    console.log(arg)
  }

  function useHandler(callback: (arg1: string, arg2: number) => void) {
    callback('lys', 599)
  }
  useHandler(handler)
})()
